Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRGetAvailableResolutions

You can use the QTVRGetAvailableResolutions function to get the image resolutions present in the current node.

OSErr QTVRGetAvailableResolutions (
                     QTVRInstance qtvr,
                     UInt16*resolutionsMask);
qtvr
An instance of a QuickTime VR movie.
resolutionsMask
On entry, a pointer to an unsigned short integer. On exit, that integer is set to a bitmask that encodes the image resolutions available at the current node.
function result
A result code.

DESCRIPTION

The QTVRGetAvailableResolutions function returns, in the unsigned short integer pointed to by the resolutionsMask parameter, a bitmask that encodes the image resolutions available at the current node of the QuickTime VR movie specified by the qtvr parameter.

A single node can contain multiple resolutions of a panorama or an object. The lowest order bit is always set and corresponds to the base resolution of the node. Each succeeding bit corresponds to a resolution that is half that (both horizontally and vertically) of the preceding bit. If an image with a resolution is present in the current node, the corresponding bit is set.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |